package com.king.tv.http;

import java.util.List;

/**
 * Created by Answer on 2017/4/19.
 */

public class BaseCallModel<T> {


    /**
     * isSuccess : true
     * data : [{"id":"724deeeb-6b70-49dc-8791-95ada46f6824","flg":"Y","ctime":1565709439000,"mtime":1565709439000,"title":"人妖","sort":2,"ishide":false,"ishot":false,"isHideNote":"否","isHotNote":"否"}]
     * errorCode : 0
     * errorDesc : 成功
     * elapsedMilliseconds : 0
     * token : null
     * success : true
     */

    private boolean isSuccess;
    private String errorCode;
    private String errorDesc;
    private int elapsedMilliseconds;
    private Object token;
    private boolean success;
    private T data;

    public boolean isIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorDesc() {
        return errorDesc;
    }

    public void setErrorDesc(String errorDesc) {
        this.errorDesc = errorDesc;
    }

    public int getElapsedMilliseconds() {
        return elapsedMilliseconds;
    }

    public void setElapsedMilliseconds(int elapsedMilliseconds) {
        this.elapsedMilliseconds = elapsedMilliseconds;
    }

    public Object getToken() {
        return token;
    }

    public void setToken(Object token) {
        this.token = token;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseCallModel{" +
                "isSuccess=" + isSuccess +
                ", errorCode='" + errorCode + '\'' +
                ", errorDesc='" + errorDesc + '\'' +
                ", elapsedMilliseconds=" + elapsedMilliseconds +
                ", token=" + token +
                ", success=" + success +
                ", data=" + data +
                '}';
    }
}
